/**
 * Created by HAY on 2017/7/10.
 */

var express = require('express');
var router = express.Router();

var api = require('../../lib/api');

router.use('/gjj/query',api.gjjQuery);
router.use('/gjj/get',api.gjjGet);
router.use('/gjj/oldQuery',api.oldQuery);
router.use('/gjj/oldGet',api.oldGet);

router.post('/gjj/gjjCallBack',api.gjjCallBack);
router.use('/gjj/fetchManual',api.fetchManual);
router.use('/gjj/getOrder',api.getOrder);
router.use('/gjj/test',api.test);
router.use('/gjj/refreshToken',api.refreshToken);
router.ws('/gjj/wsLink',api.wsLink);
router.use('/gjj/gjjGetTaskInfo',api.gjjGetTaskInfo);
router.use('/gjj/refreshCallback',api.refreshCallback);

module.exports = router;
/*
原理：
1、加载模块
2、修改模块
3、放出模块
4、外部使用模块
 */